package org.duang.email;

import java.util.Properties;

public class MailSmtpConfig {

	public final static String SMTP_AUTH = "mail.smtp.auth";
	public final static String TRANSPORT_PROTOCOL = "mail.transport.protocol";
	public final static String SMTP_STARTTLS_ENABLE = "mail.smtp.starttls.enable";
	public final static String SMTP_SSL_ENABLE = "mail.smtp.ssl.enable";
	public final static String SMTP_SSL_SOCKET_FCTORY = "mail.smtp.ssl.socketFactory";
	
	public final static String SMTP_HOST = "mail.smtp.host";
	public final static String SMTP_PORT= "mail.smtp.port";
	
	private String smtp; // smtp服务器名称
	private int port; // 端口号
	private String description; // 描述
	private Properties props;		//设置SMTP所需要的参数值，如不设置则取默认值

	public MailSmtpConfig() {
	}

	public String getSmtp() {
		return smtp;
	}

	public void setSmtp(String smtp) {
		this.smtp = smtp;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public MailSmtpConfig(String smtp, int port) {
		super();
		this.smtp = smtp;
		this.port = port;
	}
	
	public MailSmtpConfig(String smtp, int port, String description) {
		super();
		this.smtp = smtp;
		this.port = port;
		this.description = description;
	}
	public MailSmtpConfig(String smtp, int port, String description, Properties props) {
		super();
		this.smtp = smtp;
		this.port = port;
		this.description = description;
		this.props = props;
	}

	public Properties getProps() {
		return props;
	}

	public void setProps(Properties props) {
		this.props = props;
	}
}
